package com.ruoyi.bussiness.mapper;

import com.ruoyi.bussiness.domain.SysListRelatedRead;
import com.ruoyi.bussiness.domain.SysListRelatedResource;

import java.util.List;

/**
 * 清单关联资源Mapper接口
 * 
 * @author ruoyi
 * @date 2024-06-09
 */
public interface SysListRelatedResourceMapper 
{
    /**
     * 查询清单关联资源
     * 
     * @param relatedId 清单关联资源主键
     * @return 清单关联资源
     */
    public SysListRelatedResource selectSysListRelatedResourceByRelatedId(Long relatedId);

    /**
     * 查询清单关联资源列表
     * 
     * @param sysListRelatedResource 清单关联资源
     * @return 清单关联资源集合
     */
    public List<SysListRelatedResource> selectSysListRelatedResourceList(SysListRelatedResource sysListRelatedResource);

    /**
     * 新增清单关联资源
     * 
     * @param sysListRelatedResource 清单关联资源
     * @return 结果
     */
    public int insertSysListRelatedResource(SysListRelatedResource sysListRelatedResource);

    /**
     * 修改清单关联资源
     * 
     * @param sysListRelatedResource 清单关联资源
     * @return 结果
     */
    public int updateSysListRelatedResource(SysListRelatedResource sysListRelatedResource);

    /**
     * 删除清单关联资源
     * 
     * @param relatedId 清单关联资源主键
     * @return 结果
     */
    public int deleteSysListRelatedResourceByRelatedId(Long relatedId);

    /**
     * 批量删除清单关联资源
     * 
     * @param relatedIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysListRelatedResourceByRelatedIds(Long[] relatedIds);



    List<SysListRelatedResource> getRelatedResourceByType(SysListRelatedResource sysListRelatedResource);

    int batchInsertRelatedResource(List<SysListRelatedResource> sysListRelatedResourceList);

     int deleteRelatedResourceByListId(Long checkListId);

}
